package com.github.data_manage

import com.github.data_manage.dao.FundDao
import com.github.data_manage.service.FundDeepResearchService
import com.github.data_manage.service.FundDepthResearchAttachService
import org.junit.jupiter.api.Test
import org.springframework.beans.factory.annotation.Autowired
import org.springframework.boot.test.context.SpringBootTest

@SpringBootTest(webEnvironment = SpringBootTest.WebEnvironment.RANDOM_PORT)
class FundDepthResearchAttachCalcTest {

    @Autowired
    lateinit var fundDao: FundDao

    @Autowired
    lateinit var fundDeepResearchService: FundDeepResearchService

    @Autowired
    lateinit var fundDepthResearchAttachService: FundDepthResearchAttachService

    @Test
    fun calcTest(){
//        fundDepthResearchAttachService.handleAttachInfo(fundDao.findById(1).orElseThrow())
        fundDepthResearchAttachService.handleContrastAnnuallyInfo(fundDao.findById(2202).orElseThrow())
    }
}